
/*
 * Copyright (C) 2008-2009 Archie L. Cobbs. All rights reserved.
 *
 * $Id: ComplexField.java 377 2010-03-11 20:50:18Z archie.cobbs $
 */

package org.dellroad.sidekar;

/**
 * An {@link Entity} field that stores complex data, such as sets, lists, and maps.
 *
 * @param <T> Java type used to represent this field's value
 */
public abstract class ComplexField<T> extends Field<T> {

    ComplexField(String name, Entity<?> entity, Class<?> type) {
        super(name, entity, type);
        if (this.getEntity() == null)
            throw new IllegalArgumentException("null entity");
    }
}

